package lab4p2;

/**
 * <p>Title: Counter class - A simple integer counter</p>
 * <p>Description: CS 235 Lab #4</p>
 * 
 * @author This is from the textbook - Nino & Hosch
 * @email anthony.varghese@uwrf.edu
 * @date August 8th 2013
 * @team none
 * 
 */
public class Counter {
	/**
	 * Data member: count
	 */
	private int count;

	/**
	 * Constructor
	 *  Create a new Counter, with the count initialized to 0.
	 */
	public Counter() {
		count = 0;
	}

	/**
	 * currentCount
	 *  Return the number of items counted.
	 */
	public int currentCount() {
		return count;
	}

	/**
	 * incrementCount
	 *  Increment the count by 1.
	 */
	public void incrementCount() {
		count = count + 1;
	}

	/**
	 * reset
	 *  Reset the count to 0.
	 */
	public void reset() {
		count = 0;
	}

}